package com.jack.vipmis.vip.feedback.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;
import com.jack.vipmis.vip.member.entity.Member;

/**
 * 反馈信息
 * 
 * @author JackLiang
 * @version 1.0
 * @date 2014-6-20
 */
@Entity
@Table(name = "feedback")
public class FeedBack extends BaseEntity<Long> {

	@Column
	private String	fbTitle;

	@Column(name = "phone")
	private String	telephone;					// 联系方式

	@Column
	private String	userName;

	@Column
	private String	fbContent;

	@ManyToOne(optional = true, fetch = FetchType.LAZY)
	@JoinColumn(name = "create_user", nullable = false)
	private Member	createUser;

	@Column(name = "create_date")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date	createDate	= new Date();

	@Column(name = "is_show")
	private Boolean	show;

	public String getFbTitle() {
		return fbTitle;
	}

	public void setFbTitle(String fbTitle) {
		this.fbTitle = fbTitle;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getFbContent() {
		return fbContent;
	}

	public void setFbContent(String fbContent) {
		this.fbContent = fbContent;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Member getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Member createUser) {
		this.createUser = createUser;
	}

	public Boolean getShow() {
		return show;
	}

	public void setShow(Boolean show) {
		this.show = show;
	}

}
